import axios from 'axios';
import {ajax,base} from './config'

//车辆管理
export const getCarsList = params => { return ajax.getMinData({url:`${base}api/bsCarController/datagrid.do`, params}); };

export const removeCars = params => { return ajax.postData({url:`${base}api/bsCarController.do?doDel`, params}); };

export const batchRemoveCars = params => { return ajax.postData({url:`${base}api/bsCarController.do?doBatchDel`, params}); };

export const editCars = params => { return ajax.postData({url:`${base}api/bsCarController.do?doUpdate`, params}); };

export const addCars = params => { return ajax.postData({url:`${base}api/bsCarController.do?doAdd`, params}); };

export const updateCars = params => { return ajax.postData({url:`${base}api/bsCarController.do?exportXlsByT`, params}); };

export const getDepart = params => { return axios.post(`${base}api/map.do?getOtherDepart`, params); };